package com.tangshuai;

import redis.clients.jedis.Jedis;

import javax.sound.sampled.Port;
import java.util.Set;

public class TestPing {
    public static void main(String[] args) {
        // 1. new jedis 对象即可
        Jedis jedis = new Jedis("115.29.241.140",4352);
        jedis.auth("0602");
        //jedis 所有的命令就是我们之前学习的所有指令
        System.out.println(jedis.ping());


    }

}
